package azalea.mqtt.gui;

import java.util.HashMap;

public class GlobalCompMap {
	private static GlobalCompMap instance;
	private HashMap<String, Object> map = new HashMap<String, Object>();

	public static GlobalCompMap getInstance() {
		if (instance == null) {
			instance = new GlobalCompMap();
		}
		return instance;
	}

	public void put(String key, Object value) {
		map.put(key, value);
	}

	public Object get(String key) {
		return map.get(key);
	}

	public Object remove(String key) {
		return map.remove(key);
	}
}
